﻿@page
@model RegisterModel
@{
    ViewData["Title"] = "Register";
}



<div class="row">
    <div class=" col-md-offset-4 col-md-4">
        <form asp-route-returnUrl="@Model.ReturnUrl" method="post">
            <h2>注册</h2>
            <h4>创建新用户</h4>
            <hr />
            <div asp-validation-summary="All" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="Input.Email">账号</label>
                <input asp-for="Input.Email" class="form-control" />
                <span asp-validation-for="Input.Email" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Input.Password">密码</label>
                <input asp-for="Input.Password" class="form-control" />
                <span asp-validation-for="Input.Password" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Input.ConfirmPassword">确认密码</label>
                <input asp-for="Input.ConfirmPassword" class="form-control" />
                <span asp-validation-for="Input.ConfirmPassword" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label class="radio-inline">
                    <input asp-for="Input.type" type="radio" checked  value="player">玩家
                </label>
                <label class="radio-inline">
                    <input asp-for="Input.type" type="radio" value="creator">创作者
                </label>
            </div>
            <button type="submit" class="btn btn-default">注册</button>
        </form>
    </div>
</div>

@section Scripts {
    <partial name="_ValidationScriptsPartial" />
}
